Apple II
Sample Code Notes
_____________________________________________________________________________
                                                  Developer Technical Support

#8:    List.Line.Edit

Version:    3.0                                                     June 1990

APW Components:    Lists.asm
                   Lists.Inits.asm
                   Full.Build
                   Build
                   Build.Macros 

MPW Components:    Lists.Aii
                   Lists.Inits.Aii
                   MakeFile

This sample program illustrates how to handle lists and line editing in an 
Apple IIGS application.  It shows how to call most List Manager and LineEdit 
procedures in 65816 assembly language, as well as how to handle events 
relating to both tool sets.  It also performs several operations within dialog 
boxes, such as placing controls in a window without using the Dialog Manager.  
This is the only sample program from DTS which currently supports Edit menu 
items Cut, Copy, Paste, and Clear.
_____________________________________________________________________________

The demonstration generates a window containing a user-definable list, a box 
for creating a new list entry, and several buttons for manipulating the list:  
New Entry, Remove, Replace, UnHilite, and Sort.  LineEdit tools are used to 
create and edit a new line for the list in response to keyboard and mouse 
events, while List Manager tools are used to create and update the list in 
response to clicking on a line or a button.  Sorting is done in reverse order 
to demonstrate a custom sort routine.

APW users need APW v.1.0, APW Tools & Interfaces v.1.1, and Apple IIGS System 
Software 5.0.2 or later.  Three APW command files, Full.Build, Build, and 
Build.Macros allow you to perform complete or partial rebuilds of the load 
file Lists.

MPW IIGS users need MPW v.3.0, MPW IIGS Tools v.1.1, and MPW IIGS Assembler 
v.1.0 or later.  The name needed by the MPW Build menu's Build option can be 
found in the MakeFile.
